package com.smartcommunity.api.device.fallBack;

import com.alibaba.fastjson.JSONObject;
import com.smartcommunity.api.device.DeviceApi;
import com.smartcommunity.bean.entity.Camera;
import com.smartcommunity.bean.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: DeviceApiFallBack
 * @Description: 调用设备服务
 * @author: minsheng
 * @Date: 2019/1/14 15:04
 * @Company:
 * @version V1.5.0
 */
@Component
@RequestMapping("fallback")
@Slf4j
public class DeviceApiFallBack implements DeviceApi {

    @Override
    public Result getFireDeviceAllHouse(@RequestParam Map<String, Object> map1) {
        log.info("调用device-service接口:getFireDeviceAllHouse 时异常，服务不存在");
        return null;
    }
    @Override
    public Result getWifiDeviceList(@RequestParam Map<String, String> map) {
        log.info("调用device-service接口：getWifiDeviceList 时异常，服务不存在");
        return null;
    }

    @Override
    public JSONObject getWifiDeviceCount(@RequestParam Map<String, Object> recordMap) {
        log.info("调用device-service接口：getWifiDeviceCount 时异常，服务不存在");
        return null;
    }

    @Override
    public Result getFireDevice(Map<String, Object> recordMap) {
        log.info("调用device-service接口：getFireDevice 时异常，服务不存在");
        return null;
    }

    @Override
    public JSONObject getManholecoverCount(@RequestParam Map<String, Object> map) {
        log.info("调用device-service接口：getManholecoverCount 时异常，服务不存在");
        return null;
    }

    @Override
    public JSONObject getFireFightingCount(@RequestParam Map<String, Object> recordMap) {
        log.info("调用device-service接口：getFireFightingCount 时异常，服务不存在");
        return null;
    }

    @Override
    public JSONObject getAccessDeviceCount(@RequestParam Map<String, Object> recordMap) {
        log.info("调用device-service接口：getAccessDeviceCount 时异常，服务不存在");
        return null;
    }

    @Override
    public Result getCamera(@RequestParam Map<String, Object> map) {
        log.info("调用device-service接口：getCamera 时异常，服务不存在");
        return null;
    }

    @Override
    public Result<List<Camera>> getCameraList(Map<String, Object> map) {
        log.info("调用device-service接口：/camera/device/list 时异常，服务不存在");
        return null;
    }
}
